package entity

type AlarmType struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	Name string `gorm:"column:name;type:VARCHAR(255)" json:"name"`

	Content string `gorm:"column:content;type:VARCHAR(255)" json:"content"`

	Code string `json:"code"`

	Low int `gorm:"column:low;type:TINYINT" json:"low"`

	High int `gorm:"column:high;type:TINYINT" json:"high"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *AlarmType) TableName() string {
	return "alarm_types"
}
